<template>
  <div class="card">
    <el-button class="button_list" type="primary" @click="goPage">关闭当前页并返回父级三级页面</el-button>
  </div>
</template>

<script setup lang="ts" name="caseTwo">
	import { useRoute,useRouter } from "vue-router";
	import { useTabsStore } from "@/stores/modules/tabs";
	
	const route = useRoute();
	const router = useRouter();
	const tabStore = useTabsStore();
	const goPage =()=>{
		if (route.meta.is_affix) return;
		tabStore.removeTabs(route.fullPath);
		router.push('/caseOne/index');
	}
</script>

<style scoped lang="scss">
@import "./index.scss";
</style>
